package persistence;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="ADRESSE")
@GenericGenerator(name="idgen",strategy="persistence.tools.PKGenerator")
public class Adresse {
	private String id;
	private String strasse;
	private Integer hausnr;
	private Integer etage;
	private Integer plz;
	private String ort;

	public Adresse() {
	}

	public Adresse(String strasse, Integer hausnr, Integer etage, Integer plz, String ort) {
		this.strasse = strasse;
		this.hausnr = hausnr;
		this.etage = etage;
		this.plz = plz;
		this.ort = ort;
	}
	@Id
	@GeneratedValue(generator="idgen")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getStrasse() {
		return strasse;
	}

	public void setStrasse(String strasse) {
		this.strasse = strasse;
	}

	public Integer getHausnr() {
		return hausnr;
	}

	public void setHausnr(Integer hausnr) {
		this.hausnr = hausnr;
	}

	public Integer getEtage() {
		return etage;
	}

	public void setEtage(Integer etage) {
		this.etage = etage;
	}

	public Integer getPlz() {
		return plz;
	}

	public void setPlz(Integer plz) {
		this.plz = plz;
	}

	public String getOrt() {
		return ort;
	}

	public void setOrt(String ort) {
		this.ort = ort;
	}
}
